(function () {
  /**
   * 职称 mode 1 新增, 2 编辑
   */
  function getTitleFormBody(mode = '1')
  {
    return [
      {
        "type": "text",
        "size": "lg",
        "name": "name",
        "label": "名称",
        "required": true
      },
    ];
  }

  return {
    "type": "page",
    "initApi": "/b/permits/init",
    "title": "咨询师维护",
    "body": {
      "type": "tabs",
      "mode": "line",
      "tabs": [
        {
          "title": "职称",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorT/index",
            "quickSaveItemApi": "post:/b/counselorT/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_title_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorT/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              // {
              //   "name": "state",
              //   "width": 50,
              //   "type": "switch",
              //   "label": "禁用/启用",
              //   "trueValue": 1,
              //   "falseValue": 2,
              //   "quickEdit": {
              //     "type": "switch",
              //     "trueValue": 1,
              //     "falseValue": 2,
              //     "mode": "inline",
              //     "saveImmediately": true,
              //   },
              // },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorT/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorT/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
        {
          "title": "专业资质",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorQ/index",
            "quickSaveItemApi": "post:/b/counselorQ/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_edu_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorQ/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorQ/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorQ/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
        {
          "title": "教育背景",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorE/index",
            "quickSaveItemApi": "post:/b/counselorE/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_edu_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorE/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorE/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorE/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
        {
          "title": "擅长领域",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorEx/index",
            "quickSaveItemApi": "post:/b/counselorEx/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_expert_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorEx/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorEx/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorEx/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
        {
          "title": "擅长人群",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorC/index",
            "quickSaveItemApi": "post:/b/counselorC/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_crowd_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorC/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorC/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorC/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
        {
          "title": "擅长服务",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorS/index",
            "quickSaveItemApi": "post:/b/counselorS/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_service_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorS/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorS/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorS/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
        {
          "title": "擅长流派",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorSe/index",
            "quickSaveItemApi": "post:/b/counselorSe/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_sect_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorSe/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorSe/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorSe/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
        {
          "title": "语言能力",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorL/index",
            "quickSaveItemApi": "post:/b/counselorL/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_language_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorL/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorL/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorL/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
        {
          "title": "咨询风格",
          "body": {
            "type": "crud",
            "className": "break-all",
            "hideQuickSaveBtn": true,
            "api": "get:/b/counselorSt/index",
            "quickSaveItemApi": "post:/b/counselorSt/item?id=$id",
            // "itemCheckableOn": "this.is_super !== 1 && this.leader_count === 0",
            "perPage": 10,
            "keepItemSelectionOnPageChange": true,
            "maxKeepItemSelectionLength": 20,
            "pageField": "page",
            "perPageField": "page_size",
            "labelTpl": "${name}",
            "syncLocation": false,
            "filter": {
              "title": "条件搜索",
              "submitText": "搜索",
              "controls": [
                {
                  "label": "名称：",
                  "type": "text",
                  "size": "sm",
                  "name": "name",
                  "placeholder": "请输入"
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "重置"
                },
                {
                  "type": "button",
                  "actionType": "submit",
                  "label": "搜索",
                  "level": "primary",
                }
              ]
            },
            "bulkActions": [
            ],
            "filterTogglable": true,
            "headerToolbar": [
              "filter-toggler",
              "bulkActions",
              {
                "type": "button",
                "actionType": "drawer",
                "label": "新增",
                // "visibleOn": "isInArray(this.front_end, 'maintain_banner_save')",
                "icon": "fa fa-plus pull-left",
                "primary": true,
                "drawer": {
                  "title": "新增",
                  "closeOnOutside": true,
                  "closeOnEsc": true,
                  "resizable": true,
                  "position": "right",
                  "size": "lg",
                  "body": {
                    "type": "form",
                    // "debug": true,
                    "persistData": "counselor_style_insert",
                    "clearPersistDataAfterSubmit": true,
                    "name": "新增表单",
                    "api": "post:/b/counselorSt/save",
                    "controls": getTitleFormBody(),
                  }
                }
              },
              {
                "type": "columns-toggler",
                "align": "right"
              },
              {
                "type": "pagination",
                "align": "right"
              }
            ],
            "footerToolbar": [
              "statistics",
              "switch-per-page",
              "pagination"
            ],
            "columns": [
              {
                "name": "id",
                "label": "ID",
                "hidden": true,
                "sortable": true,
                "type": "text",
                "toggled": true
              },
              {
                "name": "name",
                "label": "名称",
                "sortable": false,
                "searchable": false,
                "type": "text",
                "toggled": true,
              },
              {
                "name": "creator",
                "label": "创建人",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "name": "created_at",
                "label": "创建时间",
                "type": "text",
                "sortable": false,
                "toggled": true
              },
              {
                "type": "operation",
                "label": "操作",
                "buttons": [
                  {
                    "type": "button",
                    "label": "编辑",
                    // "visibleOn": "isInArray(this.front_end, 'maintain_banner_update')",
                    "level": "primary",
                    "actionType": "drawer",
                    "drawer": {
                      "position": "right",
                      "size": "lg",
                      "title": "编辑",
                      "closeOnOutside": true,
                      "closeOnEsc": true,
                      "resizable": true,
                      "body": {
                        "type": "form",
                        // "debug": true,
                        "name": "编辑",
                        "api": "post:/b/counselorSt/update?id=$id",
                        "controls": getTitleFormBody('2')
                      }
                    }
                  },
                  {
                    "type": "button",
                    "label": "删除",
                    // "visibleOn": "isInArray(this.front_end, 'admin_list_delete')",
                    "level": "danger",
                    "actionType": "ajax",
                    "confirmText": "您确认要删除?",
                    "api": "post:/b/counselorSt/delete?ids=$id"
                  }
                ],
                "toggled": true
              }
            ]
          }
        },
      ]
    }
  };
})();